import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import '@/assets/css/reset.css'
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
import apis from "./api"
import App from './App.vue'
import { createApp } from 'vue'
import router from './router'
//引入仓库
import pinia from './store/index';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
app.config.globalProperties.$apis = apis

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(`ElIcon${key}`, component)
}
//注册模板路由
app.use(router);
//安装仓库
app.use(pinia);

app.use(ElementPlus, { locale: zhCn }).mount('#app')
